from lims import headers,get,ReturnStatus
import json

url = "MPLM_Service_Gateway/raclimsRestfulController/getTestForm"
text = get(url,env='uat',params={"EntrustmentOrder":"ST2024040022"})
# print(text)
data = json.loads(text)
# print(data['messageType'])
# print(data['_server_information_'])
# print(data['data'])
# print(data['message'])
# print(data['status'])
rs = ReturnStatus(**data)
print(rs.messageType)
print(rs._server_information_)
print(rs.data)
print(rs.message)
print(rs.status)





